fix dom element being sent to firebase