[TO_STAGE] fix for bz976112

Bug 976112

Fix corresponding to #2928.