Fixed bug in which effectful callbacks wouldn't execute.