fix bug in saving location