Fixed model lib error, type was being ignored