Bug fix for :first-child selector.