Add missing call to .ref() before calling .update()
Merge pull request #234 from rabhw/master

Add missing call to .ref() before calling .update()