Fix small error handling bug