fixed some buildVAO bugs.