Fixed an error when changing task state