fixed error with default trainer