bugfix: on slower computers, the application hangs when the first initialization