Revert "Bug fix with file ending"

This reverts commit 03b1c955ebdaa9873f620702df447b1895fbf6fa.