Fixing app to run on Lion