Fix for file tree closing immediately after opening

This appears to have fixed issue #69 for me