fixed check alive script