Fixed an error when there was no export folder available