fixing object instance role space

Fixing object instance role space in some cases, when there is not enough space for showing full role.