fix unintialized fields