fix appear from popup behavior