fix smile exception on error + content-type