Fix parse error when select is unable to be read