Fixing bug in Acl checking [ci skip]