fix stanford layers to restricted