Fixes issue with using teleport before placing trap.