Fix bug preventing the pandl flag being shown correctly on edit