strange scope bug