fix some bugs
take account step size for fixedStep