fixed callback for init