fix error handling for no source available