-Fix small issue with log variable case