Fix undefined constant issue