fixed bug in repeating dates