fixed buttons failure bug