Fixed a deactivated/not deactivated bug