Fixed bug with BCD resetting to 0