Stop client crashing when using it for the first time