Invoice not being attached

I have selected to attach the Invoice to some Order Statuses like Open but the Invoice is not being sent as an attachment of both Email to Customer and Email to Admin