Spanish only has two genders, masculine and feminine, so these sorts of mistakes are an interesting revelation of how language works.
Some features of languages are hard and unless one acquired an intuition early in life, they'll keep making mistakes.