Fixed an error that caused multiple shares to be ignored.