Fix profile logging