fix crash in putty format