fix the weird crash