fixing duplicate step-by-step bug