Fix define_callbacks call

This was causing callbacks to be both before and after
callbacks once set.