Membership 2 manual payments do not assign gateway

While user selecting membership and pay with a manual payment, the invoice is created but not assigned any gateway. So I can't mark the invoice as paid. How can I solve this?