Fix aliasing violation