-fix bug with traps