fixed log calls