Fix criteria for restoring course complete

Fixes #9