fixed a few careless errors in initialization