Fixed error where code did not match logging data.