Fixes bug when deleting files as another user