[PEDA] Fix 'deactive' function