fixes "floating" vars