fix margins

fixes this bug #237