Fixed bug with result directory.