Fixing application crash.