fixed some uninitialized errors