fixed uninitialized step bug