problem with replace_inner?