Fix friend condition