changed bug for error files