Fix error case