Fixed check for useless pathrestrict. inside zone