Minor correction to the code