fixed bug with incorrectly handled "click anywhere" style button events