Fixed bug when no profiles existed