fixed internal error issue