fixed concurrency bug in the JavaFXLauncher