Fixed a crash when no profile exist on the machine