mrgin fix