secure city object being null on city layouts