Fix problems with unlock overlay not closing on BP pages. Fixes #80