fixed scope bug in class_base::commit