local model fix