fix bug in diskMargin