fixed bugs with putContentItem