fixed bug with trigger entering