fixed error in testcase 9