Attempt to fix bug 833677

This block of code wasn't getting run.