Fixed empty pattern matching elements