fix the bug on tmppostingstream (in -> fp)