added margin bugfix