fix invoke-later if called on EDT
invoke-later fix