Fixed file closing Frame.cs