fixing button locking