Fixed a bug in the BCS_class that resulted in incorrect operation when w = 64