Fixing bug with parent active nodes not getting the right class