fix name comparison