Fix for datetime widgets