Fixed rare crash.