Fix bugs acssociated with LOG transform