added basic fix_plural() function