Fix remove issue when json not passed in