fix pedantic compile issue