Fix bug in using IdentityFile