Make sure that selected index is integer

Make sure that selected index is integer. Index was sometimes float.
Cleanup by boskee

Cleanup by boskee
Fix typo

Fix typo
Merge branch 'master' of git://github.com/avelanarius/Minecraft