fixed bug in getJSON