Clean up percentage checkbox handling.

Fixes #115.