Fixed bug when deleting jclic activities and enableajax is enabled