Fixed possible errors with some password protected files