fix update structure bug