fixed a bug in method getPlural