Fix undefined problem