fix strict aliasing rule violation