fix bug in changing text on buttons