Fix bug where callbacks passed upon initialization are ignored