Fixed bug in smeasure