fixing a bug.

helps andrew.