fixed endless loop bug in def-assigning when no defs avail.