fix ssf bug, 0-1=-1 is a legal index of list in python, raise indexerror when 0