Update profiler.php

profiler enabling/disabling issue solved.