Fixed "Use of undefined constant" warnings