fix 2.2 compat (JSON parse error)