Fix logic error in previous fix.