Fixed file save handler