fixed error flag reset in trajectory server