correctly fix the callback