small change for compatibility

Fix addon compatibility issue #7224