Fixes firefox bug on checkActiveButtons