Cannot set property 'staticLabels' of undefined