fix date widget rendering