Problems with adjust byte array on struct