Avoid going outside 0-100 for PrecentType. This fixes #1014

This fixes #1014