error fixes to handlers for firebase change