fix spurious callback bug