fix for the time when same filename exists