fix bug in dictionaries where it wasn't establishing scope for variables