fix crash in signature help

this fixes #1339