remove incorrect warning. fixes #1730