fixed step > size bug in windowed