fix for issue https://github.com/angular-ui/ui-date/issues/44