fixes #303 - updated get previous incomplete step to now be get first incomplete step