Fixed some issues with generating access lists.