Marked and fixed some horizontal gate generation issues.