fixed local model not working