bug fixes for date picker