This is what makes Russian grammar terribly difficult. You learn that feminine words end in "а" and you think you got feminine nouns down. And then all of a sudden you come across the word "врага"....