little fix on datetime selection