bug fix for firebase bindto