fixes bug after change in layoutentity