Fixed some bugs in dbbeam_gpu