Fixes dict not callable bug