Fixing definition of the active attribute