fixed edge case with content and not elements