fixed log api