fixing error reporting when profile isn't found