fix messages when window has no active view