--reinstall-clean needs to be executed twice to succeed

The --reinstall-clean option always fails on the first run. The second run it succeeds.