Fix beginning of gui setup