fix bug with background popup