Fix missing variable initialisation