fixed task dependency and typo in function name