Comparesion was made to the wrong id