Changed the code for test case 7944