fix a problem of poking negative numbers