Fixed dictionary initialization bug