Fix warning

Fix #1182