set the correct range for paramters in signature help

Handles #1096