Fixes checkActiveButton parentElement