Fixing dependency name and error handling