Cannot read property 'apartment' of undefined