fix logic error with CPU moving
fix logic error with CPU moving