fix content transfer bugs.