fixed compile warning with GCC