Fixed RC4 bugs