Fix name comparison

http://jira.webinos.org/browse/WP-1192