fixed bugs in task04