fixed step hook issue, afterstep was executing before's method