Bug fix on restriction uncomment