fairshare bug fix max value long wrongly set