fixed a remaining bug in bdc3dfb as pointed out by rkern