Fixed error in BCS, found with Firefox. Closes #55