Fix datatype error in cube_server.cpp