Fixed ceil->floor, as it should have been