fix semantic gcc error