fixed in case of null neighbor