Fixed path bug in automodel