Changing initialisation order to prevent crash