Fix undefined warning