Fixed null ref bug

Null references were created by occasionally random values of booleans
in the VAO.