Fixes layout of entity detail.