Fix no callback defined error