fix bug activating definitions