Fix bug with percentage values