fixes form scheduleddate problem