fix bug in RDBC