fix issue #479 and add spec for it
Merge pull request #480 from bem/issues/479@v2

fix issue #479 and add spec for it