bug in dates