Fix callback definintion