Log bin value fix

Bugfixes for issues found in the new template