scope bug