Improved selection position updating. It seems sweet now.