Fixed the bug of not refreshing the options when specifying a new JSON
url