fix bug with profile