Fix bug parsing rect string with %.