Reset on inputstream