Fix dynamic attribute generation

This commit fixes bug https://rock.opendfki.de/ticket/272