fixing dictionary positioning