fixed minor bug with mysql step window