fix for callback function

Signed-off-by: Matthias Knoll <matthias@bravenewtalent.com>