fix error from checking if bundle exists before unlink