solved a bug with active