IssueID #8: fix problems with not rendering popups