Fix library and udate models