fix trigger crash