fixing new file redirection on save