Fixed traps

Traps are now working correctly.