errcheck bugfix