fix rounditem margin calculation