Fixed invalidity count limit.