fixed some float issues