possible fix for layer ordering