Fixing application errors