Fix for crash.