Fix callback bug

The same callback instance is now used for pre and post actions.