fixed constant check