fix warnings and delegate selector