fixed the bug that causes .duck to crash