Fix problem where rule would only apply once

Fixes GH-2