fixing a problem in check_button()

size is a list, not an int/float