fixed get_adjacent