Fixed so many bugs about traps.