fixed an error with the round robin write handling