fixed controller calling on the wrong id.