fix an off by one in free space calculations