Bugfix for datetime widget