fix the error with gcc compiler