validate scope
fix scope validator