fix two warnings related to statics and wrong escaping