fixes typo in appstruct generation