Fix standard error logging