Fixing bear trap implementation.