Blown account with trades in profit and above margin

My trades were on profit but my account still got blown even though the trades i took where way above the margin