Fixed dismiss crash