Fix crash core plugins