Fixes null crash.