fixed state and local error