Bug fix

1. tmp file should not counted for file #
2. sometimes, file length is -1 from server, which means it doesn't
exist.