Invert wp fix