Fix lack of handling an error