Correct assignments for a["b"] = ...
while loop
Removed debug print