Fix double error output