Bugfix: Infinite loop in FileDialog