Fixed multiple notices caused by usage of not existing constants.