discard invalid callbacks #39