Fixed save to file bugs due to misnamed variable