Fix problem with pauses and crashes when open switching between many files