corrected bug in when to do daseline correction