Fixed an issue with the checkFits functons.