Fixing date problem in metadata