There is a bug in the code snippet.