fixing a dataSnapshot reference bug