fixed a bug in error_dcr in train_obj