Fix bug in previous commit
Change variable name active to ACTIVE in one place