Fixed incorrect logging