Fix the isByRef errors in the build