Fixed legend in profiles plot