Fixed before_proc event