bugfix related to getJSON