fix #143 caused by callback dataconstructor