fixed asserting the value