Fix wrong synchronization for screen stack