fixed bad initialization