fixing contact trigger