Better number parsing and refresh rate selection fix