Fixes crash.