fix keystream