fixed serious bug in bpc source reading