Fixing an log-error