fix bad initialization