Fixed error with adding null neighbours on JPS