Fix error in case profile doesn't exist.