ticket4. Fix crash