Fix changing filename behavior from previous version