Fix the bug in adding vertex distribution.