version fixing and upgrade fix for previously installed apps