Fixed file saving