Fix readNumber hanging