fixing an egregious bug with VAOs