Fixed save.xq