Fix status checking for operations.