fix boolean type in scope