Corrected bug regarding printing of api_param object