Town view null pointer fixed