frontend update close input stream fix