Fixed out of bounds crash bugs with reading console commands