Stream fixed, needed to clear flags