Fix binary conversion loop, and firefox ws