Fixed log height bug