fix bug with swittching to other trap while building