Fixed adding tasks to Firebase