#664: simple fix.
#664: fixed my mistake (incorrect filter for parent).
Merge pull request #2 from nikolaifedorov/664-issue-can-not-close-preview

664 issue can not close preview