Fix for bug reaching an internal 64K limit in rhino