Fix some undefined errors.