Fixed issue with spans ignoring content