BUG: fix for #451 handling W or WSP in higher_order_sp