Fixed monster movement when trapped or losing target.