fix c99 issue