fix minor bug for build
fix bug in slice(constructor can't invoke another constructor)
passed test for db_small*