fix cutoffs bug