Remove undefined steps