fixing broken callback