Fixes changing root dirs on the mass edit page

Fixes #53