adding initialization bug fix from Chris