Fixed bug error in buttons