Small fix for the object cutoff function.