Bug fix : Overlay view could stay on top, freezing the whole UI

Bug fix : Overlay view could stay on top, freezing the whole UI.