fix issue with c99