Fix percent bug.

Resolves #321