Fixed an undefined warning.