Fixing JSON reference