fixing typo, wrong callback for subscribe function