try fixing struct member assignment