fix a compile error for old compiler