It's non-obvious what the problem is here and why this is expected output. Please add a clarifying comment.