Fix invert not working with padding syntax