Minor fix and log statement