Fix logic error in reverse action