Fixed log and exp