Avoid getting into bad state due to E901

This fixes #170.