Fixed a bug where the output location was not correct after the first time