fixed broken gui due to thread blocking