fix #6 - fixed bug in removeRedundantTimes