Fixed Array error by converting steps to Array instead of []