invoice double up bug fix