fixed error in struct-template