A simple fix #2930

Fix the issue #2930.