fix bug with step adapter