Fixing sample applications.