The bank sinks to a loss but will resume dividend payments to shareholders