Fixed minor bug in BCD