bug fix: should replace all <inline> tags