Fixed messages keys; Permission check on open.