fix bug with gcc 4.1.2 version