callback fix for [#233]