Fix log transforms (fixes #3809)