The `delete_alias`'s guard logic was reversed