fix up error caused by mock (bug 972574)