Fixed add folder not working (fixes #147).