Fixed a bug in the SbS template preventing it to work with beam 2.