fix putFile method bug