Fixing final rank not opening file