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