fix file handle bug