Fixed weird crash