Fix handling of sprite vertices array