fix error for complex pseudo elements