bug fix capsulebase