fixed broken logic in disable method