Fixes ID
Removes pem file