fixed reassignTask to not use pending as oldStatus