fix usage of struct