corrected error in view sharing