Removed useless whileOn in fitting.