fix ibf length on the client to support sqrt