fix profile mode (#ifdef -> #if)