Update Tasks.php

fixed tasks bug