finally fixed active thing