Fix: File created via serialize method causing file with no contents