Fixed minor permissions bug