fixed another "has_cap" deprecation notice