fix crashes when using server that uses namespace prefix on elements