Fixed bug in twice plus' trap avoidance