margin bug fix

Signed-off-by: bovitobo <bovitobo@yahoo.com>