fixed incorrect if statement, id's are unique not names