fixed setting log callback