Fix boundsToApi method