fixed uninitialized varible warnings