Changed it so it doesn't crash