fixed load-last-file issue