Workaround invalid use reference counting of pictures