Fixed bug in the last test case.