Fixed a misplaced vertex attribute setting and matrix scale.