Attempted fix of margin being improperly calculated