fix vertex generation horizontal line bug