fixed scaffold bug to close #91