fix  error and fixes issue with blocking based on privleges