Attempt to fix JSON.getInt() null mess