Fixed wrong behavior on auto hidding popovers.