workaround for flickering om hide