pagination :active:before fix