Fixed a bug in comparing the first names