fixed gcc compile error