actually fixed error case