Improve VertexArray destruction

Fix a typo and move a line of code in frame buffers