fixed linear step bug