Fix critical warnings on GUI startup.