Fixed potential crash.