Fixed an erroneus case in task4