Fix undefined constant during activation