Fix profile logging (again)