Avoid crash on start of GUI