fix for margin calls