Fix profile signal handling.