fix error name in catch