Fixes smartbar behavior on mouseleave