Fix check_completion().

Adds to #3.