fix date key error