Fix selector loop.

I just add a fix to remove current selectionkey which was causing the bad behaviour.