To see if this fixes updating of params.directory