Fixed a type bug in buttons options