scope bugfix