fix update layout