Destroy pupil bug fix