fixing free space being rounded to an int