Fix crucial invalid share bug