fix strict aliasing violation