fixed a quick bug in buttons that was introduced by a fix I merged in earlier