Correct *ves singularization

I ran into an issue recently building a Roman society simulator in Rails (!) and it took me a while to figure out that slaves was being incorrectly inflected to "slafes". Looking at the library, it looks like an error. I may well be wrong but right now the following would be incorrectly pluralized:

waves - wafe
raves - rafe
caves - cafe

...and so forth.