fix flog transformation bug