fixed bug, when button was enabled when it shouldnt