Fixed path issue with calc_model function.