Changed error handling behavior and fixed single quotes in the title