update models library to fix #349