fix bug in structify