fix scope may not contain spaces, closes #129