Fixed a problem with namespaced define check