fixed set trap crash