correctly handle floating misfits in misfit.py