Fix GUI cannot be run in some system