Fix bug with profile