fix multiple callbacks