fix a bug with profile