fixed initialization problems