fixing issues with set-margins and set-width