fixed where bug.

fixed where bug.