got error TypeError: Cannot read property 'isActive' of undefined