All the wrong things pay off for Tesla