plotProfile() fix bug with xtype (issue 352)