fix callback check