Missed one error check