Fix a bug with layers background and moving up&down