fixed cached errors bug