Narrowing down why file not saving