hopefully final fix for the pd~ regression