fix for failed testcases