Attempts to resolve the layer stacking bugs in the editor.