fixed crashy log statement