Fix for undefined constant

As directed by @fatbusinessman