fix model lib