fix warnings and delegate selector
Merge pull request #6 from fernandodev/master

Some fixes