Fixed bug in mscaffold