correct small bug introduced during API conversion