fix a few errors related to the custom json library