Fixed errors in dict