patch errors