fix element restriction

there was no template