[issue#40] Bug with callback mechanism fixed.