does this work?
repalce M.wp with WP()
fixed