span incorrectly replaced