Fixed the problem where buttons were working when disabled.