Fix releasing messages to dirs with null access list and fix potential securety problem;
Fix access checking;