fixed bug in activation check