fixed overlay stacking bugs