Fixed small bug with popup if opened from onNew