fix json writer not found exception