fix extra 'err' in webdirector