fixed vertex array problem