fixes bug for creating neighborhoods