smartactive : fix stupid code