Fix of floating errors

Maybe not fixed. I can't test