Fix trigger close event