Fixed capsule rendering bugs.