fixed a place where we didn't set the error flag to 1