fixing the crash.: