Fixes crash introduced in latest build.