Fixes new object creation not being linked to firebase