Fix rare crash.