patched a error