Fix possible errors with some password protected files