Fixed small inconsistiency in the code