fixes crash.