Trapped chests: darts firing from wrong square

When you set a dart trap in a chest, and then set a poison trap, the poison trap replaces the dart trap, which is then fired. However the dart fires out from the wrong square; it starts from the player's current square, instead of the chest square.