[gcc4.7] fixed two little errs;