fix an inernal error