Quick fix for code

Quickly recognizes problems within apps either in code or virus and replaces wrong code with a recent type.