bug correction in nodeCapsule method