Fix permission template bug with ACL.