Fixed behaviour with undefined permissions