fixed issue with loading model resource from variables file