Calendar was not working if end date field was empty. it's fixed now