Bug fix; dict init should be called last.