fixed compiler warning in gcc