fix assignment to entry in nil map bug