Fixed bug in struct member registration