Fix off-by-one bug preventing all server RPC handling

Change-Id: I2e3e277cb6b385f4713a72129f51c34d8c893995