bugfix with dateselector