fix bug dates