fixed error on endtime in contract form