fix missing returned error