Fixed always reinstall flag