Split external internal redis, fix bug