replaced BORDERPX with sel->border in togglemax(), in other places this is not possible.