Fix wrong union usage

I should use struct instead of union to group variables! :<