fixed local errors