assigning tasks bug fixed