Fixed a query in the insane json helper