fixed bug when no steps