Fixing some bug in the PNA tasks and pna driver.