Fixed the selected index offset
Removed the console output