Fix for recursive element append bug and replace caption in text