fixed callback function.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
bump version to 1.3.1

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>