Fixed callbacks bug and parsing endTime when creating model