fix margins output