bpd wrong error code fixed