Fixed bug with profile