fix bug in the metadata directive

- skipped was not working properly
adapt the premises to the selected scheme