Fix popup closing via binding