I was wrong, you code is correct