fix gcc complain about non-const reference...